﻿using System;
using Sliver.Network.Components;
using WebSocketSharp;

namespace Sliver.Network.WebSocket.Client
{
    public interface IWebSocketClientListener
    {
        void OnOpen(AbsWebSocketClient client, EventArgs args);

        void OnError(AbsWebSocketClient client, ErrorEventArgs args);

        void OnClose(AbsWebSocketClient client, CloseEventArgs args);

        void OnReceiveMessage(AbsWebSocketClient client, MessageIn message);
    }
}
